//
//  ViewController.m
//  LearnGit
//
//  Created by OADUser on 2018/6/4.
//  Copyright © 2018年 OADUser. All rights reserved.
//

#import "ViewController.h"
#import "ASUINavigationController.h"
#import "OneViewController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
   OneViewController *ASfristPV = [[OneViewController alloc]  init];
    ASUINavigationController *serviceNav_app = [[ASUINavigationController alloc] initWithRootViewController:ASfristPV];
    serviceNav_app.tabBarItem.title = @"首页";//Home-999_2
    ASfristPV.enterKey = @"首页";
    serviceNav_app.tabBarItem.image = [[UIImage imageNamed:@"首页"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
//    serviceNav_app.tabBarItem.selectedImage = [[UIImage imageNamed:@"home-999_hl_3"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
    //navigationBarIconHome
    OneViewController *servicefristPV = [[OneViewController alloc]  init];
    servicefristPV.enterKey = @"订单";
    ASUINavigationController *serviceNav = [ASUINavigationController controllerWithRoot:servicefristPV];
    serviceNav.tabBarItem.title = @"订单";
    serviceNav.tabBarItem.image = [[UIImage imageNamed:@"订单"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
    OneViewController *communicationPV = [[OneViewController alloc]  init];
    communicationPV.enterKey = @"沟通";
    ASUINavigationController *communicationNav = [ASUINavigationController controllerWithRoot:communicationPV];
    serviceNav.tabBarItem.title = @"沟通";
    communicationNav.tabBarItem.image = [[UIImage imageNamed:@"沟通"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
    OneViewController *visitingPV = [[OneViewController alloc]  init];
    visitingPV.enterKey = @"任务";
    ASUINavigationController *visitingNav = [ASUINavigationController controllerWithRoot:visitingPV];
    visitingNav.tabBarItem.title = @"任务";
    visitingNav.tabBarItem.image = [[UIImage imageNamed:@"任务"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
    OneViewController *minePV = [[OneViewController alloc]  init];
    minePV.enterKey=@"我的";
    ASUINavigationController *mineNav = [ASUINavigationController controllerWithRoot:minePV];
    mineNav.tabBarItem.title = @"我的";
    mineNav.tabBarItem.image = [[UIImage imageNamed:@"我的"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
    OneViewController *reportPV = [[OneViewController alloc]  init];
    ASUINavigationController *reportNav = [ASUINavigationController controllerWithRoot:reportPV];
    reportPV.enterKey= @"沟通";
    reportNav.tabBarItem.title = @"沟通";
    reportNav.tabBarItem.image = [[UIImage imageNamed:@"沟通IM"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
        
    self.viewControllers = @[serviceNav_app,serviceNav,visitingNav,reportNav,mineNav];
    self.selectedIndex = 0;
    self.tabBar.tintColor = [UIColor colorWithWhite:0 alpha:1];
    
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
